import axios from 'axios'

export function uploadFile (file) {
    let param = new FormData()
    param.append('file', file, file.name)
    let config = {
        headers: { 'Content-Type': 'multipart/form-data' }
    }
    return axios.post(`file/upload`, param, config)
}
